//----------------------------------------------------------------------------------------------
//	Filename:	BoxFilter.cpp
//	Author:		Keith Bugeja
//	Date:		27/02/2010
//----------------------------------------------------------------------------------------------
//	Implementation for Rays in R3
//----------------------------------------------------------------------------------------------
#include "Filter/BoxFilter.h"

using namespace Illumina::Core;

//----------------------------------------------------------------------------------------------
BoxFilter::BoxFilter(void)
{ }
//----------------------------------------------------------------------------------------------
BoxFilter::BoxFilter(const std::string &p_strName)
	: IFilter(p_strName)
{ }
//----------------------------------------------------------------------------------------------
void BoxFilter::operator()(Vector2 *p_pSamples, int p_nSampleCount)
{
	for (int i = 0; i < p_nSampleCount; i++)
	{
		p_pSamples[i].Set(
			p_pSamples[i].X - 0.5f,
			p_pSamples[i].Y - 0.5f);
	}
}
//----------------------------------------------------------------------------------------------